#ifndef _TIMER_H
#define _TIMER_H

#include "stm32f10x.h"

void TIMx_init(u16 per,u16 psc,TIM_TypeDef* TIM_x);
void TIMx_OCx_init(TIM_TypeDef* TIM_x,u8 OCx,GPIO_TypeDef* GPIOx,uint16_t GPIO_Pin_x);
void TIMx_NVIC_init(TIM_TypeDef* TIM_x,uint16_t TIM_IT_x,IRQn_Type TIMx_IRQn);

#endif
